//
//  ProductEditViewController.h
//  DemoCoreData
//
//  Created by tangkexiong on 16/3/16.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ProductEditViewController, YCProduct;

@protocol ProductEditVCDelegate <NSObject>

- (void)productEditVC:(ProductEditViewController *)vc didEdit:(YCProduct *)product isAdd:(BOOL)isAdd;

@end

@interface ProductEditViewController : UIViewController

@property (nonatomic, retain) YCProduct *product;
@property (nonatomic, weak) id<ProductEditVCDelegate> myDelegate;

@property (weak, nonatomic) IBOutlet UITextField *nameTxtFld;
@property (weak, nonatomic) IBOutlet UITextField *priceTxtFld;
@property (weak, nonatomic) IBOutlet UILabel *categoryLabel;

@end
